package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 根据用户Id展示购物车
     *
     * @param userId
     * @return
     */
    List<ShoppingCart> queryAllByUserId();

    /**
     * 清空购物车
     */
    void deleteCarts();

    /**
     * 对购物车单删
     *
     * @param shoppingCartDTO
     * @param shoppingCartDTO1
     */
    void deleteOne(ShoppingCartDTO shoppingCartDTO);
}
